<% layout('/layouts/default.html', {title: '销售记录管理', libs: ['dataGrid']}){ %>
<div class="main-content">
	<div class="box box-main">
		<div class="box-header">
			<div class="box-title">
				<i class="fa fa-list-alt"></i> ${text('销售记录管理')}
			</div>
			<div class="box-tools pull-right">
			</div>
		</div>
		<div class="box-body">
			<#form:form id="searchForm" model="${salesRecords}" action="${ctx}/phone/salesRecords/commodityDaylistData" method="post" class="form-inline hide"
					data-page-no="${parameter.pageNo}" data-page-size="${parameter.pageSize}" data-order-by="${parameter.orderBy}">
			</#form:form>
			<table id="dataGrid"></table>
			<div id="dataGridPage"></div>
		</div>
	</div>
</div>
<% } %>
<script>
// 初始化DataGrid对象
$('#dataGrid').dataGrid({
	searchForm: $("#searchForm"),
	columnModel: [
		{header:'商品名称', name:'commodityName', width:150, align:"left"},
		{header:'数量', name:'number', width:150, align:"center"},
		{header:'销售日期', name:'salesTime',  width:150, align:"center"},
		{header:'业务员名称', name:'salesmanName', width:150, align:"center"},
	],
	// 加载成功后执行事件
	ajaxSuccess: function(data){
		
	}
});
</script>